如何在Visual Studio for C ++中为FICO XPRESS Optimization Solver设置环境变量?

时间:2019-08-08 22:27:12

标签: c++ optimization solver

我正在尝试使用Xpress作为C ++中的求解器来解决一个简单的LP,但是设置环境变量时遇到了问题,我希望这样做会阻碍代码的编译过程。我不确定100%,因此,我对此表示感谢。

#include    #include“ xprb_cpp.h”

使用命名空间标准;    使用名称空间:: dashoptimization;

import React from "react";
import ReactDOM from "react-dom";

const EasyList = ({ data, ListComponent = "ul", ItemComponent = "li" }) => {
  return (
    <ListComponent>
      {data.map(item => (
        <ItemComponent>{item}</ItemComponent>
      ))}
    </ListComponent>
  );
};
const myItems = ["Here", "are", "my", "list", "items"];
const DivWithHeaderText = ({ children }) => {
  return (
    <div style={{ border: "solid black 1px" }}>
      <div>Here is my header</div>
      <hr />
      {children}
    </div>
  );
};
function App() {
  return (
    <>
      <EasyList data={myItems} />
      <EasyList
        data={myItems}
        ListComponent={DivWithHeaderText}
        ItemComponent="p"
      />
    </>
  );
}

const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);

严重性代码描述项目文件行抑制状态    错误(活动)E1696无法打开源文件“ xprb.h”

0 个答案:

没有答案