Comments (4)
My architecture is close to yours, except for clang version (clang-1300.0.29.30).
I can compile with architecture x86_64 (by default I have arm64). But the compilation works fine.
I am not sure if there is just the utSetInterruptPending
function missing. Could you try to comment the lines
` //Check for Ctrl-C
if ( utIsInterruptPending() )
{
utSetInterruptPending(false); /* clear Ctrl-C status */
mexPrintf("\nCtrl-C Detected. Exiting NOMAD...\n\n");
count_eval = false;
NOMAD::Step::setUserTerminate();
return false;
}`
This is around line 368 in $NOMAD_HOME/interfaces/Matlab_MEX/Source/nomadmex.cpp.
This function is used for CTRL-C detection.
from nomad.
It now compiles, but MATLAB crashes every time I run nomadOpt
. More precisely, I tried
nomadOpt(@(x)x^2,1)
Did I misunderstood the syntax and broke the MEX-file? Thanks 👍
from nomad.
The syntax you used is not correct. Run the examples in $NOMAD_HOME/interfaces/Matlab_MEX/test_nomad_gerad.m
to make sure that everything works normally. You can use the examples to work your problem.
Nevertheless, Matlab should not crash if the nomadOpt is called with the wrong syntax. I will look into that and also how to replace the utIsInterruptPending()
function.
from nomad.
I understand. The tests runs on my machine, and produces
------------------------------------------------------------------
This is NOMAD v4.2.0
Authors: C. Audet, S. Le Digabel, V. Rochon Montplaisir and C. Tribes
MEX Interface C. Tribes 2021
Problem Properties:
# Decision Variables: 2
# Number of Objectives: 1
# Number of Nonlinear Constraints: 0
------------------------------------------------------------------
BBE OBJ
1 909
10 20
13 4.82
23 2.5
27 2.12
37 1.7
42 1.22
59 1
60 0.929419
63 0.80402
68 0.71065
72 0.694857
74 0.639846
76 0.631801
78 0.588927
80 0.5689
82 0.561994
84 0.505621
90 0.477985
91 0.461502
93 0.420715
97 0.400596
98 0.376996
99 0.359715
100 0.35004
A termination criterion is reached: Maximum number of blackbox evaluations (Eval Global) Success found and opportunistic strategy is used 100
Best feasible solution: #4590 ( 0.455 0.184 ) Evaluation OK f = 0.3500400000000000178 h = 0
Best infeasible solution: Undefined.
Blackbox evaluations: 100
Total model evaluations: 3664
Cache hits: 8
Total number of evaluations: 108
Feasible solution obtained
Thank you very much,
Tom.
from nomad.
Related Issues (20)
- How to retrieve the best solution HOT 4
- [Question] How to access the CacheBase through the Java wrapper ? HOT 3
- PSD-NOMAD crash due to "std::out_of_range" HOT 7
- Plans for F_TARGET in v4 HOT 1
- PyNomad is incompatible with Cython 3.0
- Conflict with MATLAB libstdc++.so.6
- The trouble when I ran test_gerad_norm.m HOT 1
- PyNomad Import Error in Python>3.6 HOT 7
- Unconverged Problem w/ NOMAD 4.4 MATLAB Interface Using "DISCO_MADS" HOT 8
- Invaling MEX-file when running nomadOpt() in MATLAB interface for Linux HOT 1
- NomadProblem not freed in C interface HOT 2
- Missing stdbool.h include in C interface header HOT 2
- LH_SEARCH for MATLAB interface HOT 3
- Exceptions may be thrown from C interface functions HOT 4
- Inconsistent return value from solveNomadProblem HOT 3
- Problem with 53 variables to be optimized using PyNOMAD; PSD_NOMAD not working; What other options do I have? HOT 11
- quadratic models with DMulti-MADS? HOT 1
- Evaluation fails for X0
- Binary vs Integer Variables HOT 1
- Multiple Starting Points for MATLAB interface HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nomad.